package io.renren.modules.job.task.basedata;

import io.renren.modules.basedata.service.ServiceHallUploadService;
import io.renren.modules.job.task.ITask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("serviceHallUploadTask")
public class ServiceHallUploadTask implements ITask {
    private Logger logger = LoggerFactory.getLogger(getClass());

    @Autowired
    ServiceHallUploadService serviceHallUploadService;

    @Override
    public void run(String params){

        logger.info("serviceHallUploadTask 定时任务正在执行，参数为：{}", params);

        try {

            serviceHallUploadService.serviceHallUpload();
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
